home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / DTS.Lib / DTS.Lib.headers / UtilitiesCommon.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-17  |  2.3 KB  |  56 lines  |  [TEXT/MPS ]

  1. /*-----------------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    Collection of Utilities for DTS Sample code
  6. #
  7. #    Program:    Utilities.c.o
  8. #    File:        UtilitiesCommon.h    -    Common Source for C and Rez
  9. #
  10. #    Copyright © 1988-1990 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. -----------------------------------------------------------------------------------------*/
  14.  
  15. #define kUseCreatorString        (-1)        /* Pass this to StandardAbout if you would
  16.                                                like the string stored in your creator
  17.                                                resource to appear in the about box. */
  18. #define kUseRealAppName            (-2)        /* Pass this to StandardAbout if you would
  19.                                                like the name of your application to
  20.                                                appear in the about box. */
  21.  
  22. #define rUtilErrorAlert            256            /* dlg ID used in ErrorAlert */
  23. #define rUtilErrorMessageAlert    257            /* dlg ID used in ErrorAlertMessage */
  24. #define rStdAboutAlert            258            /* dlg ID used for About box. */
  25.  
  26. #define rUtilStrings            256            /* STR# resource we use for errors. */
  27. #define eStandardErr            1            /* Generic "An error occured" string. */
  28. #define eNoMenuBar                2            /* "No 'MBAR' resource was found." */
  29.  
  30. #define kButtonFrameSize        3            /* button frame’s pen size */
  31. #define kButtonFrameInset        (-4)        /* inset rectangle adjustment around button */
  32.  
  33. #define kExtremeNeg                (-32768)    /* kExtremeNeg and kExtremePos are used to set
  34.                                                up wide open rectangles and regions. */
  35. #define kExtremePos                (32767 - 1)    /* required to address an old region bug */
  36.     
  37. #define kDITop                    0x0050        /* kTopLeft - for positioning the Disk
  38.                                                Initialization dialogs. */
  39. #define kDILeft                    0x0070
  40.  
  41. #define kControlInvisible        0
  42. #define kControlVisible            0xFF
  43. #define kCntlActivate            0            /* enabled control’s hilite state */
  44. #define kCntlDeactivate            0xFF        /* disabled control’s hilite state */
  45. #define kCntlOn                    1            /* control’s value when truned on */
  46. #define kCntlOff                0            /* control’s value when truned off */
  47. #define kSelect                    1            /* select the control */
  48. #define kDeselect                0            /* deselect the control */
  49.  
  50. #define kScrollbarWidth            16            /* kScrollBarWidth can be used in
  51.                                                calculating values for control
  52.                                                positioning and sizing.*/
  53. #define kScrollbarAdjust        (kScrollbarWidth - 1)
  54.  
  55.  
  56.